<?php
ob_start();
header('Content-Type: text/html;charset=utf-8');
/*
	此文件只负责将数据表中文件上传进度更新为100%
		向数据库添加新记录在 ajax_create_fid.php 文件中处理
	如果服务器不存在此文件，则添加一条记录，百分比为100%
	如果服务器已存在相同文件，则将文件上传百分比更新为100%
*/
/* $privateKey = "2C4ED1CC9BAA42A9";
$iv 	= "2C4ED1CC9BAA42A9";
$data 	= "test";

//加密
$encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $privateKey, $data, MCRYPT_MODE_CBC, $iv);
$txt_pass = base64_encode($encrypted);
echo($txt_pass);
echo '<br/>';

//解密
$encryptedData = base64_decode($txt_pass);
$decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $privateKey, $encryptedData, MCRYPT_MODE_CBC, $iv);
echo($decrypted); */

$bd = '{"blockCount":2,"blockIndex":2,"blockOffset":10485760,"blockSize":2422296,"blockSizeLogic":10485760,"id":"d07210f1815c476e9c4f282b86079050","lenLoc":12908056,"lenSvr":0,"nameLoc":"360se%5F5%2E0%5F20120628%2Eexe","pathLoc":"D%3A%2F360se%5F5%2E0%5F20120628%2Eexe","pathRel":"","pathSvr":"D%3A%2Fwamp64%2Fwww%2Fup7%2Fdb%2Fupload%2F2017%2F08%2F30%2Fd07210f1815c476e9c4f282b86079050%2F360se%5F5%2E0%5F20120628%2Eexe","perSvr":"0.00","pid":"","pidRoot":"","sizeLoc":"","uid":"0","uname":"test","upass":"test"}';
echo mb_detect_encoding($bd);
//$dd = mb_convert_encoding($bd,"UTF-8","ASCII");

echo getcwd();
//header('Content-Length: ' . ob_get_length());
?>